package com.xzy.mapper;

import com.xzy.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component(value = "DepartmentMapper")
public interface DepartmentMapper {
    @Select("select * from department where departmentId=#{departmentId}")
    Department getDepartment(int departmentId);
    @Select("select * from department where departmentName=#{departmentName}")
    Department getDepartmentByName(String departmentName);
}
